projects
/
project
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a02da9
)
dhcpv6: DHCPV6_OPT_INFO_REFRESH contains a 4 byte option
author
Paul Donald
<
[email protected]
>
Thu, 13 Nov 2025 00:13:51 +0000
(
01:13
+0100)
committer
Álvaro Fernández Rojas
<
[email protected]
>
Thu, 13 Nov 2025 12:37:19 +0000
(13:37 +0100)
we shall not expect data beyond 4 bytes. So the logic should be ==
Signed-off-by: Paul Donald <
[email protected]
>
Link:
https://github.com/openwrt/odhcp6c/pull/118
Signed-off-by: Álvaro Fernández Rojas <
[email protected]
>
src/dhcpv6.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6.c
b/src/dhcpv6.c
index e5ef5ccab4132ea3658459541686c301cb5d1397..7bcaee06e56dda80c4cedbf421d12740b41dcb48 100644
(file)
--- a/
src/dhcpv6.c
+++ b/
src/dhcpv6.c
@@
-1475,7
+1475,7
@@
static int dhcpv6_handle_reply(enum dhcpv6_msg orig, _o_unused const int rc,
break;
case DHCPV6_OPT_INFO_REFRESH:
- if (olen
>
= 4)
+ if (olen
=
= 4)
refresh = ntohl_unaligned(odata);
break;